﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<div id="planlist">
    <p>
        流程列表</p>
    <div>
        <table>
            <tr>
                <th>
                    编码
                </th>
                <th>
                    名称
                </th>
                <th>
                    创建时间
                </th>
                <th>
                    创建人
                </th>
                <th>
                    操作
                </th>
            </tr>
            <%
                System.Data.DataTable dt_wf = ViewData["dt_wf"] as System.Data.DataTable;
                for (int i = 0; i < dt_wf.Rows.Count; i++)
                {
            %>
            <tr>
                <td>
                    <%=dt_wf.Rows[i]["编码"]%>
                </td>
                <td>
                    <%=dt_wf.Rows[i]["名称"]%>
                </td>
                <td>
                    <%=DateTime.Parse(dt_wf.Rows[i]["创建时间"].ToString()).ToString("yyyy-MM-dd HH:mm")%>
                </td>
                <td>
                    <%=dt_wf.Rows[i]["创建人"]%>
                </td>
                <td>
                    <%=Ajax.ActionLink("发起", "PlanStart", new { wf_id = dt_wf.Rows[i]["编码"], user_id = ViewData["user_id"] }, new AjaxOptions { UpdateTargetId = "workarea", OnSuccess = "intityUserTree_WF" })%>
                </td>
            </tr>
            <%
                } %>
        </table>
    </div>
</div>
